﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WpfAGVSystem.DBModel
{
    /// <summary>
    /// 成品放料点
    /// </summary>
    [Table("FinishedPut_Entity")]
    public class FinishedPut_Entity : BaseDbmodel
    {
        [Key]

        public int Id { get; set; }
        public int Deviceid { get; set; }
        public int Station { get; set; }
        public int PreStation { get; set; }
        public int BackStation { get; set; }
        public int Area { get; set; }



        public int StationEmpty { get; set; }
        public int PreStationEmpty { get; set; }
        public int BackStationEmpty { get; set; }
        public int AreaEmpty { get; set; }
        public int TaskTypeEmpty { get; set; }
        public int Flow { get; set; }

        public bool IsEnable { get; set; }
        public int TaskType { get; set; }
        public float GetHeigh { get; set; }
        public float PutHeigh { get; set; }
        public string Remark { get; set; }
        public bool IsHave { get; set; }
        public bool IsCreat { get; set; }
        public FinishedPut_Entity Clone()
        {
            return new FinishedPut_Entity()
            {
                Deviceid = this.Deviceid,
                Station = this.Station,
                PreStation = this.PreStation,
                BackStation = this.BackStation,
                Area = this.Area,
                Flow = this.Flow,
                TaskType = this.TaskType,
                Remark = this.Remark,
                GetHeigh=this.GetHeigh,
                PutHeigh = this.PutHeigh,
                StationEmpty = this.StationEmpty,
                PreStationEmpty = this.PreStationEmpty,
                BackStationEmpty = this.BackStationEmpty,
                AreaEmpty = this.AreaEmpty,
                TaskTypeEmpty = this.TaskTypeEmpty,
                IsEnable=this.IsEnable,
                IsHave=this.IsHave,
                IsCreat=this.IsCreat,
            };
        }
    }
}



